package com.sinosoft.front.service;

public class ProvisionalTmpSaveServicePortTypeProxy implements com.sinosoft.front.service.ProvisionalTmpSaveServicePortType {
  private String _endpoint = null;
  private com.sinosoft.front.service.ProvisionalTmpSaveServicePortType provisionalTmpSaveServicePortType = null;
  
  public ProvisionalTmpSaveServicePortTypeProxy() {
    _initProvisionalTmpSaveServicePortTypeProxy();
  }
  
  public ProvisionalTmpSaveServicePortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initProvisionalTmpSaveServicePortTypeProxy();
  }
  
  private void _initProvisionalTmpSaveServicePortTypeProxy() {
    try {
      provisionalTmpSaveServicePortType = (new com.sinosoft.front.service.ProvisionalTmpSaveServiceLocator()).getProvisionalTmpSaveServiceHttpSoap11Endpoint();
      if (provisionalTmpSaveServicePortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)provisionalTmpSaveServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)provisionalTmpSaveServicePortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (provisionalTmpSaveServicePortType != null)
      ((javax.xml.rpc.Stub)provisionalTmpSaveServicePortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.sinosoft.front.service.ProvisionalTmpSaveServicePortType getProvisionalTmpSaveServicePortType() {
    if (provisionalTmpSaveServicePortType == null)
      _initProvisionalTmpSaveServicePortTypeProxy();
    return provisionalTmpSaveServicePortType;
  }
  
  public com.sinosoft.front.dto.xsd.ProvisionalTmpSaveResponse saveProvisionalTmp(com.sinosoft.front.dto.xsd.ProvisionalTmpSaveRequest request) throws java.rmi.RemoteException{
    if (provisionalTmpSaveServicePortType == null)
      _initProvisionalTmpSaveServicePortTypeProxy();
    return provisionalTmpSaveServicePortType.saveProvisionalTmp(request);
  }
  
  public com.sinosoft.front.busInterface.xsd.ProvisionalTmpSaveInterface getProvisionalTmpSaveInterface() throws java.rmi.RemoteException{
    if (provisionalTmpSaveServicePortType == null)
      _initProvisionalTmpSaveServicePortTypeProxy();
    return provisionalTmpSaveServicePortType.getProvisionalTmpSaveInterface();
  }
  
  public com.sinosoft.front.busInterface.xsd.ProvisionalTmpSaveCheckInterface getProvisionalTmpSaveCheckInterface() throws java.rmi.RemoteException{
    if (provisionalTmpSaveServicePortType == null)
      _initProvisionalTmpSaveServicePortTypeProxy();
    return provisionalTmpSaveServicePortType.getProvisionalTmpSaveCheckInterface();
  }
  
  public void setProvisionalTmpSaveCheckInterface(com.sinosoft.front.busInterface.xsd.ProvisionalTmpSaveCheckInterface provisionalTmpSaveCheckInterface) throws java.rmi.RemoteException{
    if (provisionalTmpSaveServicePortType == null)
      _initProvisionalTmpSaveServicePortTypeProxy();
    provisionalTmpSaveServicePortType.setProvisionalTmpSaveCheckInterface(provisionalTmpSaveCheckInterface);
  }
  
  public void setProvisionalTmpSaveInterface(com.sinosoft.front.busInterface.xsd.ProvisionalTmpSaveInterface provisionalTmpSaveInterface) throws java.rmi.RemoteException{
    if (provisionalTmpSaveServicePortType == null)
      _initProvisionalTmpSaveServicePortTypeProxy();
    provisionalTmpSaveServicePortType.setProvisionalTmpSaveInterface(provisionalTmpSaveInterface);
  }
  
  
}